package request

// PatientRegisterReq 患者注册请求
type PatientRegisterReq struct {
	Phone    string `json:"phone" binding:"required"`
	Password string `json:"password" binding:"required"`
	SmsCode  string `json:"smsCode" binding:"required"`
}

// PatientLoginReq 患者登录请求
type PatientLoginReq struct {
	Phone    string `json:"phone" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// ForgotPasswordReq 忘记密码请求
type ForgotPasswordReq struct {
	Phone string `json:"phone" binding:"required"`
}

// ResetPasswordReq 重置密码请求
type ResetPasswordReq struct {
	Phone       string `json:"phone" binding:"required"`
	NewPassword string `json:"newPassword" binding:"required"`
	SmsCode     string `json:"smsCode" binding:"required"`
}

// PatientVerifyReq 患者实名认证请求
type PatientVerifyReq struct {
	RealName string `json:"realName" binding:"required"`
	IdCard   string `json:"idCard" binding:"required"`
}

// UpdatePatientReq 更新患者信息请求
type UpdatePatientReq struct {
	Name           string `json:"name"`
	Gender         int    `json:"gender"`
	BirthDate      string `json:"birthDate"`
	Phone          string `json:"phone"`
	AllergyHistory string `json:"allergyHistory"`
	MedicalHistory string `json:"medicalHistory"`
}

// AddPatientReq 新增就诊人请求
type AddPatientReq struct {
	Name      string `json:"name" binding:"required"`
	Gender    int    `json:"gender" binding:"required"`
	BirthDate string `json:"birthDate" binding:"required"`
	Phone     string `json:"phone" binding:"required"`
	IdCard    string `json:"idCard"`
	Relation  string `json:"relation" binding:"required"` // 与本人关系
}

// AddressReq 地址请求
type AddressReq struct {
	Province      string `json:"province" binding:"required"`
	City          string `json:"city" binding:"required"`
	District      string `json:"district" binding:"required"`
	Address       string `json:"address" binding:"required"`
	ReceiverName  string `json:"receiverName" binding:"required"`
	ReceiverPhone string `json:"receiverPhone" binding:"required"`
	IsDefault     bool   `json:"isDefault"`
}
